package com.aliwo.mapper;

import com.aliwo.domain.Video;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author:xuyayuan
 * @date:2021/7/18 21:01
 * @description:TODO
 */
@Mapper
public interface VideoMapper {

    Integer save(Video video);

    /**
     * 查询所有
     */
    List<Video> findAll();

    /**
     * 根据id查询
     */
    Video getVideoById(Integer id);

    /**
     * 更新
     */
    Boolean update(Video video);

    /**
     * 删除
     */
    Boolean delete(Integer id);

}
